package com.作业.Day7;

public class Homework5 {
    public static void main(String[] args) {
        Phone phone = new Phone();
        phone.call();
        phone.send();
        phone.music();
        phone.video();
        phone.photo();
        phone.internet();

    }
}

interface addPhone{
   void music();
   void video();
   void photo();
   void internet();

}

class Phone implements addPhone{
    public void call(){
        System.out.println("打电话");
    }
    public void send(){
        System.out.println("发短信");
    }

    @Override
    public void music() {
        System.out.println("音乐");
    }

    @Override
    public void video() {
        System.out.println("视频播放");
    }

    @Override
    public void photo() {
        System.out.println("拍照");
    }

    @Override
    public void internet() {
        System.out.println("上网");

    }
}


